package com.teach.order.model.po;

import java.time.LocalDateTime;
import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 订单详情表
 * </p>
 *
 * @author hzz
 * @since 2020-02-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="OrderDetails对象", description="订单详情表")
public class OrderDetails implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    @ApiModelProperty(value = "所属订单")
    private String ordersId;

    @ApiModelProperty(value = "美食id")
    @JsonProperty("id")
    private String foodsId;

    @ApiModelProperty(value = "美食名字")
    private String foodsName;

    @ApiModelProperty(value = "美食价格")
    private String foodsPrice;

    @ApiModelProperty(value = "图片")
    private String foodsImgUrl;

    @ApiModelProperty(value = "商品数量")
    private Integer count;

    @ApiModelProperty(value = "更新时间")
    private LocalDateTime updatetime;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createtime;

    @ApiModelProperty(value = "逻辑删除1")
    private String state;


}
